const Controller = require('egg').Controller;

class OrderController extends Controller {

    async resendSMS () {

        const { app, ctx } = this;

        const { ordercode } = ctx.request.body;

        ctx.logger.info(ordercode);

        const result = await ctx.service.order.updateSmsState(ordercode, '1', '2');

        if(result == 1){
        	ctx.helper.success('发送中');
        }else{
        	ctx.helper.success('发送失败');
        }

    }


}
module.exports = OrderController;